<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    {% csrf_token %}
    用户名：<input type="text" name="uname">
    <br>
    真实姓名：<input type="text" name="truename">
    <br>
    密码：<input type="password" name="pwd">
    <br>
    手机号：<input type="text" name="tel">
    <br>
    性别：<select name="sex" id="">
        <option value="1">男</option>
        <option value="2">女</option>
    </select>
    <br>
    角色：<select name="roleid" id="">
        {% for i in ro %}
        <option value="{{ i.id }}">{{ i.rolename }}</option>
        {% endfor %}
    </select>
    <br>
    地址：<input type="text" name="address">
    <br>
    <input type="submit" value="添加">
{#    {% csrf_token %}#}
{#    {{ form. }}#}
</form>
</body>
</html>